package com.qf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.entity.dto.AdminModule;
import com.qf.entity.vo.JqueryTreeView;
import com.qf.mapper.AdminModuleMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class AdminModuleService extends ServiceImpl<AdminModuleMapper,AdminModule>{

    @Transactional(readOnly = true)
    public List<JqueryTreeView> getModuleByAdminId(Long adminId) {
        return this.baseMapper.getModuleByAdminId(adminId);
    }

    @Transactional(readOnly = true)
    public List<AdminModule> getModuleById(Long id) {
        return this.baseMapper.getModuleById(id);
    }
}
